#ifndef THREADDLG_H
#define THREADDLG_H

#include <QDialog>
#include <QPushButton>
#include "workthread.h"
#define MAXSIZE 1
QT_BEGIN_NAMESPACE
namespace Ui { class ThreadDlg; }
QT_END_NAMESPACE

class ThreadDlg : public QDialog
{
    Q_OBJECT

public:
    ThreadDlg(QWidget *parent = nullptr);
    ~ThreadDlg();
public slots:
    void slotStart();
    void slotStop();
private:
    Ui::ThreadDlg *ui;
    QPushButton* startBtn;
    QPushButton* stopBtn;
    QPushButton* quitBtn;
    WorkThread* workThread[MAXSIZE];
};
#endif // THREADDLG_H
